'''
Created on 28 sept. 2010
@author: Marc CARRE
@contact: carre.marc@gmail.com
@license: GNU GPLv3
@version: 1.0
'''

class FileWriter:
    
    def __init__(self, filePath):
        self._file = open(filePath, 'w')
    
    def write(self, point, label):
        self._file.write(str(point) + " : " + label + "\n")
        
    def close(self):
        self._file.flush()
        self._file.close()